package com.beta.service;


import com.beta.common.exception.BaseServiceException;

/**
 * Created by vector on 2016/11/22.
 */
public class ServiceException extends BaseServiceException {

    public ServiceException(Exception exception) {
        super(exception);
    }

    public ServiceException(String code, Object... args) {
        super(code, args);
    }

    public ServiceException(Exception e, String code, Object... args) {
        super(e, code, args);
    }

    @Override
    public String getMessage() {
        return this.getCode();
    }

}
